package Chapter7;
import java.util.*;
public class Example27 {
	public static void main(String[] args) {
		ArrayList list=new ArrayList();
		Collections.addAll(list, "C","Z","B","K");
		System.out.println("before  "+list);
		Collections.reverse(list);
		System.out.println("reverse  "+list);
		Collections.sort(list);
		System.out.println("sort  "+list);
		Collections.shuffle(list);
		System.out.println("shuffle  "+list);
		
		

	}

}
